package edu.sctu.practice.class01.zhangwang.day2015_10_14.text01;

import java.util.Date;

/**
 * Created by Z_W on 2015/10/14.
 */
public class Yue extends Thread{
    @Override
    public void run() {
        super.run();
        while (true){
            System.out.println(new Date());
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args) {
        int a = 0;
        Yue yue = new Yue();
        yue.start();
        System.out.println("end");
        System.out.println(a = 1+2);
    }
}
